package com.matrix.rabbitmqtest.util;

/**
 * 运行计时器
 */
public class RunningTimer {

    private long beginningTime;

    public RunningTimer() {
        this.beginningTime = System.currentTimeMillis();
    }

    public long end() {
        return System.currentTimeMillis() - beginningTime;
    }
}
